package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.RegisterBody;
import com.ruoyi.framework.web.service.SysRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysRegisterController {
    @Autowired
    private SysRegisterService sysRegisterService;
    @RequestMapping("/register")
    public AjaxResult userRegister(RegisterBody registerBody){
        return sysRegisterService.register(registerBody);

    }
}
